import Sequelize from 'sequelize';
import { sequelize } from '../utils/MysqlBaseUtil';

const AccessTokenModel = sequelize.define('wechat_access_token', {
    id: {
        type: Sequelize.INTEGER,
        allowNull: false,
        primaryKey: true
    },
    access_token: {
        type: Sequelize.STRING,
    },
    expires_in: {
        type: Sequelize.STRING,
    },
}, {
        freezeTableName: true,  // sequelize不会改变表名，否则可能会按其规则有所调整
        timestamps: false        // 为模型添加 createdAt 和 updatedAt 两个时间戳字段
    });

export {AccessTokenModel}


